<#assign base=request.contextPath />
<!DOCTYPE html>
<html lang="en">
<head>
	<link rel="stylesheet" href="${base}/static/assets/css/chosen.css" />
	<link rel="stylesheet" href="${base}/static/assets/css/bootstrap-timepicker.css" />
	<#include "/commons/headImport.ftl">
</head>
<body>
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>
	<div class="main-container-inner">
		<div class="main-content">
			<div class="page-content">
				
				<form class="form-horizontal" id="formName" name="formName" method="post">
				<input type="hidden" value="${base}" id="context_hidden_id"/>
				<input type="hidden" value="0" name="type" id="type"/>
				<input type="hidden" value="1" id="temp"/>

				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">出库项目</label>
							<div class="col-sm-4">
                                <select class="form-control contract-chosen-select" name="contractId" id="contract-select" >
                                    <option value="">--请选择--</option>
                                </select>
							</div>
						</div>
						
						<div class="space-4"></div>
						<div class="form-group">
							<label class="col-sm-2 control-label no-padding-right">姓名</label>
							<div class="col-sm-4">
								<select class="form-control user-chosen-select" name="employeeId" id="user-select" >
			                        <option value="">--请选择--</option>
			                    </select>
			                	<input type="hidden" id="user_list_id" value="">
							</div>
							<label class="col-sm-2 control-label no-padding-right">参考金额</label>
							<div class="col-sm-3">
								<input type="text" id="cankao_amount_id" class="col-sm-6" />
							</div>
						</div>
						
						<div class="col-sm-12">
							<div class="widget-box transparent">
								<div class="widget-body">
									<div class="widget-main no-padding">
										<table class="table table-striped table-bordered">
											<thead class="thin-border-bottom">
												<tr>
													<th width="20%">出勤日期</th>
													<th width="25%">时间</th>
													<th width="10%">金额</th>
													<th width="15%">备注</th>
													<th width="15%"></th>
												</tr>
											</thead>
											<tbody id="body_id">
												<tr>
													<td>
														<div class="col-sm-12">
								                            <div class="input-group input-group-sm">
								                                <input type="text" readonly="true" class="form-control date-picker" 
								                                	name="list[0].workDate" data-date-format="yyyy-mm-dd"/>
								                                <span class="input-group-addon"><i class="icon-calendar"></i></span>
								                            </div>
														</div>
													</td>
													<td>
														<div class="input-daterange input-group">
															<div class="col-sm-6">
																<div class="input-group bootstrap-timepicker">
																	<input type="text" name="list[0].startWorkTime" class="col-sm-12 startWorkTime" />
																	<span class="input-group-addon">
																		<i class="fa fa-clock-o bigger-110"></i>
																	</span>
																</div>
															</div>
															<div class="col-sm-6">
																<div class="input-group bootstrap-timepicker">
																	<input type="text" name="list[0].endWorkTime" class="col-sm-12 endWorkTime"/>
																	<span class="input-group-addon">
																		<i class="fa fa-clock-o bigger-110"></i>
																	</span>
																</div>
															</div>
														</div>
													</td>
													<td>
														<input type="text" id="orig_page_amount" AUTOCOMPLETE="off" name="list[0].paymentDO.pageAmount" class="col-sm-12" />
													</td>
													<td><input type="text" name="list[0].remark" class="col-sm-12" /></td>
													<td>
														<a class="btn btn-minier btn-success" id="copy_id">
															<i class="icon-plus bigger-110"></i>添加
														</a>
													</td>
												</tr>
											</tbody>
										</table>
									</div><!-- /.widget-main -->
								</div><!-- /.widget-body -->
							</div><!-- /.widget-box -->
						</div><!-- /.col -->
					</div>
				</div>
				</form>
			</div>
		</div>
	</div><!-- /.main-container-inner -->
</div><!-- /.main-container -->

<div class="hr hr32 hr-dotted"></div>

<div class="clearfix">
	<label class="col-sm-3 control-label no-padding-right"></label>
	<div class="col-md-offset-3 col-md-9">
		<button class="btn btn-xs btn-info" type="button" id="add_id" url="${base}/attendance/addBath">
			<i class="icon-save bigger-110"></i>保存
		</button>
		<button class="btn btn-xs" type="reset" id="return_id">
			<i class="icon-reply bigger-110"></i>关闭
		</button>
	</div>
</div>

<#include "/commons/footJs.ftl">
<script src="${base}/static/assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="${base}/static/assets/js/date-time/bootstrap-timepicker.min.js"></script>
<script src="${base}/static/assets/js/date-time/bootstrap-datepicker.zh-CN.js"></script>
<script src="${base}/static/assets/js/chosen.jquery.min.js"></script>
<script src="${base}/static/layer/layer.js"></script>
<script src="${base}/static/js/erp/employee.js"></script>
<script src="${base}/static/js/erp/contract-select.js"></script>
<script src="${base}/static/js/erp/artificialEdit.js"></script>
</body>
</html>
